package com.homedo.odin.solution.dao;

import com.homedo.core.common.base.dao.BaseDao;
import com.homedo.odin.solution.model.dto.SolutionDownloadResponseBean;
import com.homedo.odin.solution.model.dto.UserSolutionResult;
import com.homedo.odin.solution.model.entity.UserSolution;
import java.util.Date;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * <p> 用户下载收藏关系表 Mapper 接口 </p>
 *
 * @author HarveyDing
 * @since 2018-03-08
 */
public interface UserSolutionMapper extends BaseDao<UserSolution> {

    List<SolutionDownloadResponseBean> solutions(@Param("actionType") Integer actionType);

    List<UserSolution> getUserSolutionList(@Param("userId") Integer userId, @Param("actionType") Integer actionType);

    UserSolution getUserSolution(@Param("userId") Integer userId, @Param("solutionId") Long solutionId,
            @Param("actionType") Integer actionType);

    List<UserSolutionResult> querySdownloadList(@Param("userId") Integer userId,
            @Param("actionType") Integer actionType,
            @Param("solutionName") String solutionName, @Param("solutionStatus") Integer solutionStatus,
            @Param("createStartTime") Date createStartTime, @Param("createEndTime") Date createEndTime);
}